package com.yuyu.good.api.controller;

import com.yuyu.commons.interceptor.response.ResponseJson;
import com.yuyu.shop.remote.IOrderServiceMicroService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author
 * @version 1.0
 * @description: TODO
 * @date 2022/9/28 17:17
 */
@RequestMapping("/test")
@RestController
public class TestController {

    @Resource
    private IOrderServiceMicroService iOrderServiceMicroService;

    @GetMapping("/test")
    public ResponseJson getOne(@RequestParam("orderId") String orderId){
        return iOrderServiceMicroService.queryOrderByOrderId(orderId);
    }
}
